projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b317d7
)
(eshell-parse-double-quote): If a double-quoted argument resolves to
author
John Wiegley
<johnw@newartisans.com>
Fri, 26 Aug 2005 22:35:48 +0000
(22:35 +0000)
committer
John Wiegley
<johnw@newartisans.com>
Fri, 26 Aug 2005 22:35:48 +0000
(22:35 +0000)
nil, return it as an empty string rather than as nil. This made it
impossible to pass "" to a shell script as a null string argument.
lisp/eshell/esh-arg.el
patch
|
blob
|
history
diff --git
a/lisp/eshell/esh-arg.el
b/lisp/eshell/esh-arg.el
index 7e0be3138e88ba1df0ad9adb8b819a31990c6f1c..322a0173b276074fd298f60e303e26dc5f0e4e37 100644
(file)
--- a/
lisp/eshell/esh-arg.el
+++ b/
lisp/eshell/esh-arg.el
@@
-342,8
+342,10
@@
special character that is not itself a backslash."
(save-restriction
(forward-char)
(narrow-to-region (point) end)
- (list 'eshell-escape-arg
- (eshell-parse-argument)))
+ (let ((arg (eshell-parse-argument)))
+ (if (eq arg nil)
+ ""
+ (list 'eshell-escape-arg arg))))
(goto-char (1+ end)))))))
(defun eshell-parse-special-reference ()